package com.ylcode.libback.controller;

import com.ylcode.libback.common.R;
import com.ylcode.libback.model.pojo.User;
import com.ylcode.libback.service.UserService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class UserController {
    @Resource
    private UserService userService;

    @RequestMapping("/selectList")
    public R<List<User>> selectList() {
        List<User> all;
        all = userService.selectList();
        return R.success(all);
    }
}
